<%@ page contentType="text/html; charset=utf-8" import="com.java.model.UserSession,com.java.util.*;"%>
<%
String localUrl = request.getRequestURI();

request.setCharacterEncoding("utf-8"); 

UserSession userSession = (UserSession)session.getAttribute("user");

//System.out.println( "     헤더에서 세션정보 ==>"+userSession );
String connGroup 	= "";
String user_id 		= "";
if(userSession!=null){
	connGroup 	= CmmUtil.nvl(userSession.getConnGroup(),"0");
	user_id 	= CmmUtil.nvl(userSession.getUser_id(),"");
}
%>
<!DOCTYPE html> 
<html> 
	<head> 
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>교육담당자</title> 
    <meta id="viewport" name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;user-scalable=1; height=device-height;"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<meta name="apple-mobile-web-app-status-bar-style content="black"/>
	<link rel="stylesheet" href="/mobile/jquery.mobile-1.0a4.1/jquery.mobile-1.0a4.1.min.css" />
	<script src="/mobile/js/jquery-1.5.2.js"></script>
	<script src="/mobile/jquery.mobile-1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script> 
            
</head> 
<%
if(user_id.equals("") && !localUrl.equals("/mobile/index.jsp")){
%>
<script>
location.href='/mobile/index.jsp';
</script>
<%
}else if(!user_id.equals("") && localUrl.equals("/mobile/index.jsp")){
%>
<script>
location.href='/mobile/main.jsp';
</script>
<%}%>